home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11905 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: csus.edu!csus
  2. From: sac46826@csus.edu (Mike Billard)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: MSVC++4.0 compile error- help needed
  5. Date: Sat, 16 Mar 96 23:28:28 GMT
  6. Organization: California State University Sacramento
  7. Message-ID: <4ifird$t0t@news.csus.edu>
  8. References: <4if0if$m68@news.csus.edu> <4ifdnn$m8o@nuacht.iol.ie>
  9. NNTP-Posting-Host: @u0103-p10.dialin.csus.edu
  10. X-Newsreader: News Xpress 2.0 Beta #0
  11.  
  12. Thanks, I'll give that a try.
  13. In article <4ifdnn$m8o@nuacht.iol.ie>, David Byrden <goyra@iol.ie> wrote:
  14. >
  15. >
  16. >>>However, when I create a Windows program (MDI, SDI, Dialog-based) and 
  17. >>> add the CTest.cpp to the project and the CTest.h to a simple dialog 
  18. >>> class that I create, upon building the project I receive the following 
  19. >>> message:
  20. >
  21. >>> :\Projects\test\CTest.cpp(23) : fatal error C1010: unexpected end of 
  22. >>> file while looking for precompiled header directive
  23. >
  24. >
  25. >  Visual C++ can speed up its compilations by using a "precompiled 
  26. >header". The reason is that you often include many large header files 
  27. >which never change, and which get compiled repeatedly. This feature lets 
  28. >the compiler "predigest" them just once and store the results in a PCH 
  29. >file.
  30. >
  31. >  I guess that precompiled headers are the default for MFC programs, 
  32. >because of the large MFC headers. You can dig around in your project 
  33. >settings and disable the feature.
  34. >
  35. >  If you want to actually use it, you must include the header file 
  36. >STDAFX.H at the top of each CPP file. The predigested stuff is whatever 
  37. >you put in STDAFX.H
  38. >
  39. >
  40. >                                        David
  41. >
  42. >
  43. >
  44.  
  45. -Mike Billard
  46.  
  47. email: billardm@csus.edu
  48.